
#ifndef __APP_TOUCH_H__
#define __APP_TOUCH_H__


/* Includes ------------------------------------------------------------------*/
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported define -----------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */
void Touch_Init(void);
void Touch_Proc(void);
void Touch_ChangeState(u8 state);

void Touch_AddData(u8 dev, u16 dlen, u8 *pdata);
/* External variables --------------------------------------------------------*/


void point_intersection(PLINEEQ_DATA pL1, PLINEEQ_DATA pL2, PPOINT_DATA pd);
float point_distance(PPOINT_FLOAT pPt1, PPOINT_FLOAT pPt2);
void touch_new(PTOUCH_DATA pTd, PPOINT_DATA pPd, int bId);
void touch_dn(PTOUCH_DATA pTd, PPOINT_DATA pPd);
void touch_up(PTOUCH_DATA pTd);
int touch_send(PTOUCH_DATA pTd, int nNew, int nOld);


#endif /*__APP_TOUCH_H__*/
